Signed-off-by: Jimi Xenidis <jimix@watson.ibm.com>
Signed-off-by: Hollis Blanchard <hollisb@us.ibm.com>
--HG--
extra : transplant_source : %85%C4%82%F3%0A%0A%B7%E9%D8s%031%E7%7C%9E%20-%8E%A6%B1
*/
.globl spin_start
spin_start:
+
+ /* Do a cache flush for our text, in case the loader didn't */
+ LOADADDR(r9, _start)
+ LOADADDR(r8, _etext)
+4: dcbf r0,r9
+ icbi r0,r9
+ addi r9,r9,0x20 /* up to a 4 way set per line */
+ cmpld cr0,r9,r8
+ blt 4b
+ sync
+ isync
+
/* Write our processor number as an acknowledgment that we're alive. */
LOADADDR(r14, __spin_ack)
stw r3, 0(r14)